package com.hsb.seckill.dao;

import com.hsb.seckill.vo.GoodsVo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * (Goods)表数据库访问层
 *
 * @author makejava
 * @since 2021-09-05 21:56:51
 */
@Mapper
public interface GoodsDao {

    /**
     * 查询所有秒杀商品
     * @return
     */
    List<GoodsVo> querySeckillGoods();

    /**
     * 根据商品id查询秒杀商品
     * @return
     * @param goodsId
     */
    GoodsVo querySeckillGoodsById(long goodsId);
}